/*
Authors: Eli Yucht 300388949 and Lior Fass 300069705
Project: Hamming
Description: Entrance Point for the reciever program - init the Reciever object and run it.
*/

#define _CRT_SECURE_NO_WARNINGS
#define _WINSOCK_DEPRECATED_NO_WARNINGS // for inet_addr()
// link with Ws2_32.lib
#pragma comment(lib,"Ws2_32.lib")

#include <iostream>
#include "reciever.h"

using namespace std;

int main(int argc, char* argv[])
{
	int status;
	Reciever reciever;
	
	status = reciever.Init(argc,argv);
	if (status)
	{
		cout << "init failed" << endl;
		return 1;
	}

	status = reciever.Run();
	if (status)
	{
		cout << "reciever run failed" << endl;
		return 1;
	}
	return 0;
}

